package com.zhiying.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="cms_organization",catalog="pussinboots_morning")
public class CMS_Organization{
	
	@OneToMany(mappedBy = "Organization")
	private List<CMS_User> user=new ArrayList<CMS_User>();
    /**
     * 组织ID
     */
	@Id
  	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "organization_id", nullable = false)
	private Long organizationId;
    /**
     * 组织名称
     */
	@Column(name="organization_name")
	private String organizationName;
    /**
     * 系统数据 1=是,只有超级管理员能修改/0=否,拥有角色修改人员的权限能都修改
     */
	@Column(name="is_system")
	private Integer isSystem;
    /**
     * 状态 0=冻结/1=正常
     */
	@Column(name="status")
	private Integer status;
    /**
     * 创建时间
     */
	@Column(name="create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@Column(name="create_by")
	private String createBy;
    /**
     * 更新时间
     */
	@Column(name="update_time")
	private Date updateTime;
    /**
     * 更新者
     */
	@Column(name="update_by")
	private String updateBy;
    /**
     * 备注信息
     */
	@Column(name="remarks")
	private String remarks;


	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public Integer getIsSystem() {
		return isSystem;
	}

	public void setIsSystem(Integer isSystem) {
		this.isSystem = isSystem;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}
